package name.as3.frameworkTest.view
{
import flash.display.Sprite;
import flash.events.MouseEvent;

import name.as3.frameworkTest.events.LoginEvent;
import name.as3.simpleUIComponents.controls.SimpleUIButton;

public class CreatePanel extends Sprite
{
	private var m_btn:SimpleUIButton;
	/**
	 *
	 */
	public function CreatePanel()
	{
		super();
		graphics.beginFill(0x006688, .8);
		graphics.drawRoundRect(0, 0, 300, 280, 8, 8);
		graphics.endFill();
		m_btn = new SimpleUIButton();
		m_btn.text = "创建";
		m_btn.x = 210;
		m_btn.y = 80;
		super.addChild(m_btn);
		m_btn.addEventListener(MouseEvent.CLICK, click_btn);
	}
	private function click_btn(e:MouseEvent):void
	{
		var event:LoginEvent = new LoginEvent(LoginEvent.REQUEST_LOGIN);
		this.dispatchEvent(event);
	}
}
}